package com.muyu.danmo.mapper;

import com.muyu.danmo.domain.DanmoNewsPhone;

import java.util.List;

/**
 * 新闻图片Mapper接口
 *
 * @author yangle
 * @date 2024-09-19
 */
public interface DanmoNewsPhoneMapper
{
    /**
     * 查询新闻图片
     *
     * @param newsPhoneId 新闻图片主键
     * @return 新闻图片
     */
    public DanmoNewsPhone selectDanmoNewsPhoneByNewsPhoneId(Long newsPhoneId);

    /**
     * 查询新闻图片列表
     *
     * @param danmoNewsPhone 新闻图片
     * @return 新闻图片集合
     */
    public List<DanmoNewsPhone> selectDanmoNewsPhoneList(DanmoNewsPhone danmoNewsPhone);

    /**
     * 新增新闻图片
     *
     * @param danmoNewsPhone 新闻图片
     * @return 结果
     */
    public int insertDanmoNewsPhone(DanmoNewsPhone danmoNewsPhone);

    /**
     * 修改新闻图片
     *
     * @param danmoNewsPhone 新闻图片
     * @return 结果
     */
    public int updateDanmoNewsPhone(DanmoNewsPhone danmoNewsPhone);

    /**
     * 删除新闻图片
     *
     * @param newsPhoneId 新闻图片主键
     * @return 结果
     */
    public int deleteDanmoNewsPhoneByNewsPhoneId(Long newsPhoneId);

    /**
     * 批量删除新闻图片
     *
     * @param newsPhoneIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoNewsPhoneByNewsPhoneIds(Long[] newsPhoneIds);
}
